<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.is.control.ParamStuyearControl"%>
<%@page import="java.util.List"%>
<%@page import="com.is.model.ParamReasonType"%>
<%@page import="com.is.control.ParamReasonTypeControl"%>
<%@page import="com.is.model.ParamReasonTypeGS"%>
<%@page import="com.is.control.ParamReasonTypeGSControl"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>折合公式</title>
</head>
<body>
<%
       int stuyear = ParamStuyearControl.getCurrentStuyearId();
       List<ParamReasonType> types = ParamReasonTypeControl.getAllReaons();
       StringBuffer sb = new StringBuffer();
       for(ParamReasonType prt:types){
    	   if(prt.getId()!=1&&prt.getId()!=3){  //此处以缺勤为单位1
    		   sb.append(prt.getReasonType()+ParamReasonTypeGSControl.getNumByTypeAndStuyear(prt.getId(),stuyear)+"次=");
    	   }
       }
       sb.append("缺勤1次");
       out.print(sb);
%>
</body>
</html>